<%@ page import="com.example.tool.MysqlTool" %>
<%@ page import="com.example.demo2.Login" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%
    request.setCharacterEncoding("gbk");
    response.setContentType("text/html;charset=gbk");
    PrintWriter o = response.getWriter();
    if (session.getAttribute("user")==null || session.getAttribute("jifen") == null){
        o.print("<script>alert('未登录，请先登录!');window.location.href='index.html'</script>");
    }
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>欢 迎 使 用 刷 课 通</title>
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <link rel="stylesheet" type="text/css"href="css/iconfont.css"/>
</head>
<body>
<div id="container" style="width:500px;margin: 0px auto;margin-top: 80px;">

    <div id="header" style="background-color: #00000068;" align="center">
        <h1 style="margin-bottom:0;color: #f68084">欢 迎 使 用 刷 课 通</h1>
    </div>

    <div id="menu" style="height:500px;width:100px;float:left;border: none;background-color: #00000068;outline: none;" >
        <input style="line-height:30px;margin-top: 30px;width: 90px;height: 70px;border-radius:30px ;outline: none;border: none;background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);color: #FFFFFF;"  type="button"  name="用户" value="用户"><br>
        <a href="study.jsp"><input style="line-height:30px;margin-top: 30px;width: 90px;height: 70px;border-radius:30px ;outline: none;border: none;background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);color: #FFFFFF;" type="button"  name="学习通" value="学习通"><br>
        </a>
        <a href="Ci.jsp"><input style="line-height:30px;margin-top: 30px;width: 90px;height: 70px;border-radius:30px ;outline: none;border: none;background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);color: #FFFFFF;" type="button"  name="词达人" value="词达人"><br>
        </a>
        <a href="U.jsp"><input style="line-height:30px;margin-top: 30px;width: 90px;height: 70px;border-radius:30px ;outline: none;border: none;background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);color: #FFFFFF;" type="button"  name="U校园" value="U校园"><br>
        </a>
        <a href="Welearn.jsp"><input style="line-height:30px;margin-top: 30px;width: 90px;height: 70px;border-radius:30px ;outline: none;border: none;background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);color: #FFFFFF;" type="button"  name="Welearn" value="Welearn"><br>
        </a>
    </div>

    <div id="content" style="background-color:#00000068;height:500px;width:400px;float:left;">
        <div id="login-box" style="width: 400px">
            <table border="1" id="user" style="background-color:#00000068;float:left;color: #30cfd0">
                <tr>
                    <th>用户名</th>
                    <th>QQ</th>
                    <th>手机号码</th>
                    <th>积分</th>
                </tr>
                <tr>
                    <td>${user}</td>
                    <td>${qq}</td>
                    <td>${phone}</td>
                    <td>${jifen}</td>
                </tr>

            </table>
            <pre style="border: none;
background: none;
border-bottom: #FFFFFF 2px solid;font-size: 15px;
padding: 30px 30px;
outline: none;
color: #FFFFFF;" id="huodong">


${huodong}</pre>
        </div>

        <div id="footer" style="background-color:#FFA500;clear:both;text-align:center;">
            版权 © 勘 探 刷 课 通  QQ群：895951587</div>

    </div>

</body>
</html>
